@extends('home.layout')

@section('left-banner')
@show

@section('content')
    <div class="page-article">
        <h1>{{ $detail->title }}</h1>
        <div class="article-cont">
            {!! $detail->{$documentType}->content !!}
        </div>
        <div class="info">
            <p class="date">2016-01-15</p>
            <div class="nav">
                @if($prevDetail)
                    <a href="{{ get_home_url($prevDetail->document_type.'/detail/'.$prevDetail->id) }}" class="prev">上一篇：{{ $prevDetail->title }}</a>
                @else
                    <a href="javascript:void(0)" class="prev">上一篇：已经是第一篇了哦</a>
                @endif

                @if($nextDetail)
                    <a href="{{ get_home_url($nextDetail->document_type.'/detail/'.$nextDetail->id) }}" class="next">下一篇：{{ $nextDetail->title }}</a>
                @else
                    <a href="javascript:void(0)" class="next">下一篇：已经是最后一篇了哦</a>
                @endif
            </div>
        </div>
    </div>
@endsection